package top.kaoshanji.p1ch10c;

/**
 * 代码清单-p1ch10c-230页a：多重继承示例
 * author kaoshanji
 * ^_^
 * create time 2025/3/10 17:59
 */
public class MultipleInheritance {

    public static void main(String[] args) {
        MI mi = new MI();

        mi.first();
        mi.second();
        mi.third();

    }

}


interface One {
    default void first() {
        System.out.println("first");
    }
}

interface Two {
    default void second() {
        System.out.println("second");
    }
}

interface Three {
    default void third() {
        System.out.println("third");
    }
}

// 一个类实现了多个接口
class MI implements One, Two, Three {}

